import Vue from "vue";
import VueRouter from "vue-router";

import category from "../pages/category.vue";
import detail from "../pages/detail.vue";

Vue.use(VueRouter);

const routes = [
  {
    path:"/",
    component:category
  },
  {
    path:"/detail",
    component:detail
  },
];

const router = new VueRouter({
  routes
});

export default router;
